
import React,{ Component } from "react"
import { Link, browserHistory } from 'react-router'
import { BackTop } from 'antd';
import iphoneImg from '../../img/iphone.png';
import VxinImg from '../../img/Vxin.png';
import tweetImg from '../../img/tweet.png';
import CustomerImg from '../../img/Customer.png';
import topImg from '../../img/top.png';
import suspend0Img from '../../img/suspend0.png';
class Footer extends React.Component{
	constructor(props){
		super(props)
		this.state={
			title:""
		}
	}
	componentDidMount() {
		 window.onscroll = function () {
				 // 变量t就是滚动条滚动时，到顶部的距离
				 const t = $(window).height();
				 const top_view = document.getElementById('top_view');
				 if (top_view !== null) {
						 top_view.style.display = t >= 100 ? 'block' : 'none';
				 }
		 };
	 }

	 // 返回顶部
	 scrollToTop(){
		 window.scrollTo(0, 0);
	 };
	render(){
		return (
			<footer>
					{/*<p className="footer-first">Copyright © 2016 - 2017   京ICP备16069545号</p>*/}
					{/*<p>地址：北京市朝阳区安定路35号安华发展大厦10层01-08内1009房间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Email：hibaby@hbbcare.com &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;电话：010-80699785</p>*/}
					{/*<ul className="suspend">*/}
						{/*<li className="suspend-one">*/}
							{/*<div className="suspendContent"><img src={iphoneImg}/></div>*/}
							{/*<div className="suspendImg"><img src={suspend0Img}/></div>*/}
						{/*</li>*/}
						{/*<li>*/}
							{/*<div className="suspendContent"><img src={VxinImg}/></div>*/}
							{/*<div className="suspendImg"><img src={suspend0Img}/></div>*/}
						{/*</li>*/}
						{/*<li>*/}
							{/*<div className="suspendContent"><img src={tweetImg}/></div>*/}
							{/*<div className="suspendImg"><img src={suspend0Img}/></div>*/}
						{/*</li>*/}
						{/*<li>*/}
							{/*<div className="suspendContent"><img src={CustomerImg}/></div>*/}
							{/*<div className="suspendImg"><img src={suspend0Img}/></div>*/}
						{/*</li>*/}
						{/*<li id="top_view" onClick={this.scrollToTop.bind(this)}>*/}
							{/*<div className="suspendContent" >*/}
								{/*<BackTop><img src={topImg}/></BackTop>*/}
							{/*</div>*/}
						{/*</li>*/}
					{/*</ul>*/}
		</footer>
		)
	}
}
export default Footer;
